<%--
  Created by IntelliJ IDEA.
  User: apple
  Date: 2018/4/22
  Time: 上午11:03
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%--<%
  request.setAttribute("",);
  request.getParameter("")
%>--%>

<div class="public-content" id="apply-message" style="display: block;">
    <table style="margin-bottom: 30px" class="public-content-tab">
        <thead>
        <tr>
            <td colspan="10">查找物业</td>
        </tr>
        </thead>
        <tbody>
        <!--第一行-->
        <tr>
            <td>省份</td>
            <td>
                <div class="se-re">
                    <select id="province_list" name="leipiNewField" title="下拉菜单" class="leipiplugins"
                            leipiplugins="select" data-key="贷款类型">
                    </select>
                    <script type="text/x-handlebars-template" id="province_list_tpl">
                        <option value="">选择省份</option>
                        {{#each .}}
                        <option value="{{Id}}">{{Name}}</option>
                        {{/each}}
                    </script>
                    <span class="se-po se-po-inputTem"></span>
                </div>
            </td>
            <td><span>*</span>城市</td>
            <td>
                <div class="se-re">
                    <select id="city_list" name="leipiNewField" title="下拉菜单" class="leipiplugins"
                            leipiplugins="select" data-key="贷款类型">
                    </select>
                    <script type="text/x-handlebars-template" id="city_list_tpl">
                        <option value="">选择城市</option>
                        {{#each .}}
                        <option value="{{Id}}">{{Name}}</option>
                        {{/each}}
                    </script>
                    <span class="se-po se-po-inputTem"></span>
                </div>
            </td>
            <td>行政区域</td>
            <td>
                <div class="se-re">
                    <select id="area_list" name="leipiNewField" title="下拉菜单" class="leipiplugins"
                            leipiplugins="select" data-key="贷款类型">
                    </select>
                    <script type="text/x-handlebars-template" id="area_list_tpl">
                        <option value="">选择行政区域</option>
                        {{#each .}}
                        <option value="{{Id}}" data-Pid="{{PId}}" data-GBCode="{{GBCode}}">{{Name}}</option>
                        {{/each}}
                    </script>
                    <span class="se-po se-po-inputTem"></span>
                </div>
            </td>
            <td>片区</td>
            <td>
                <input id="district" ng-class="{'error':err.payee}" ng-focus="remFocus()" type="text" disabled>
            </td>
            <td>环线</td>
            <td>
                <input id="loopLine" ng-class="{'error':err.payee}" ng-focus="remFocus()" type="text" disabled>
            </td>
        </tr>
        <!--第二行-->
        <tr>

        </tr>
        <!--第三行-->
        <tr>
            <td>楼盘名称</td>
            <td colspan="5" class="autocom" style="position: relative;">
                <div class="span" style="margin-top: 5px;">
                    <span class="huArea autocomplete" style="width: 158px !important;margin-right: 10px;"></span>
                    <span class="price" style="position: absolute; right: 10px; color: #e55a5b; width: auto!important"></span>
                </div>
            </td>
            <td style=" background-color: white" colspan="5">
                <span id="buildMess" class="_btn _btn-size"
                      ng-click="addBorrowingName()" style="color: white;">楼盘信息</span>
            </td>
        </tr>
        <tr>
            <td>别名</td>
            <td colspan="4" class="autocom">
                <input style="width: 80%" id="alias" ng-class="{'error':err.payee}" ng-focus="remFocus()" type="text"
                       disabled>
            </td>
            <td>地址</td>
            <td colspan="4" class="autocom">
                <input style="width: 80%" id="address" ng-class="{'error':err.payee}" ng-focus="remFocus()" type="text">
            </td>
        </tr>
        <tr>
            <td colspan="2"><span>*</span>楼宇名</td>
            <td colspan="2">
                <div class="se-re">
                    <select id="build_list" name="leipiNewField" title="下拉菜单" class="leipiplugins"
                            leipiplugins="select" data-key="贷款类型">
                    </select>
                    <script type="text/x-handlebars-template" id="build_list_tpl">
                        {{#if this.[0]}}
                        {{#each this}}
                        <option value="{{ID}}">{{Name}}</option>
                        {{/each}}
                        {{else}}
                        {{/if}}
                    </script>
                    <span class="se-po se-po-inputTem"></span>
                </div>
            </td>
            <td><span>*</span>房号</td>
            <td>
                <div class="se-re">
                    <select id="house_list" name="leipiNewField" title="下拉菜单" class="leipiplugins"
                            leipiplugins="select" data-key="贷款类型">
                    </select>
                    <script type="text/x-handlebars-template" id="house_list_tpl">
                        <%--<option value="">选择房号</option>--%>
                        {{#each .}}
                        <option value="{{ID}}">{{Name}}</option>
                        {{/each}}
                    </script>
                    <span class="se-po se-po-inputTem"></span>
                </div>
            </td>
            <td>竣工年限</td>
            <td>
                <div class="se-re">
                    <select id="term_list" name="leipiNewField" title="下拉菜单" class="leipiplugins"
                            leipiplugins="select" data-key="贷款类型">
                        <option value="0">未知</option>
                        <option value="1950">1950</option>
                        <option value="1951">1951</option>
                        <option value="1952">1952</option>
                        <option value="1953">1953</option>
                        <option value="1954">1954</option>
                        <option value="1955">1955</option>
                        <option value="1956">1956</option>
                        <option value="1957">1957</option>
                        <option value="1958">1958</option>
                        <option value="1959">1959</option>
                        <option value="1960">1960</option>
                        <option value="1961">1961</option>
                        <option value="1962">1962</option>
                        <option value="1963">1963</option>
                        <option value="1964">1964</option>
                        <option value="1965">1965</option>
                        <option value="1966">1966</option>
                        <option value="1967">1967</option>
                        <option value="1968">1968</option>
                        <option value="1969">1969</option>
                        <option value="1970">1970</option>
                        <option value="1971">1971</option>
                        <option value="1972">1972</option>
                        <option value="1973">1973</option>
                        <option value="1974">1974</option>
                        <option value="1975">1975</option>
                        <option value="1976">1976</option>
                        <option value="1977">1977</option>
                        <option value="1978">1978</option>
                        <option value="1979">1979</option>
                        <option value="1980">1980</option>
                        <option value="1981">1981</option>
                        <option value="1982">1982</option>
                        <option value="1983">1983</option>
                        <option value="1984">1984</option>
                        <option value="1985">1985</option>
                        <option value="1986">1986</option>
                        <option value="1987">1987</option>
                        <option value="1988">1988</option>
                        <option value="1989">1989</option>
                        <option value="1990">1990</option>
                        <option value="1991">1991</option>
                        <option value="1992">1992</option>
                        <option value="1993">1993</option>
                        <option value="1994">1994</option>
                        <option value="1995">1995</option>
                        <option value="1996">1996</option>
                        <option value="1997">1997</option>
                        <option value="1998">1998</option>
                        <option value="1999">1999</option>
                        <option value="2000">2000</option>
                        <option value="2001">2001</option>
                        <option value="2002">2002</option>
                        <option value="2003">2003</option>
                        <option value="2004">2004</option>
                        <option value="2005">2005</option>
                        <option value="2006">2006</option>
                        <option value="2007">2007</option>
                        <option value="2008">2008</option>
                        <option value="2009">2009</option>
                        <option value="2010">2010</option>
                        <option value="2011">2011</option>
                        <option value="2012">2012</option>
                        <option value="2013">2013</option>
                        <option value="2014">2014</option>
                        <option value="2015">2015</option>
                        <option value="2016">2016</option>
                        <option value="2017">2017</option>
                        <option value="2018">2018</option>
                        <option value="2019">2019</option>
                        <option value="2020">2020</option>
                    </select>
                    <%--<script type="text/x-handlebars-template" id="term_list_tpl">
                        &lt;%&ndash;<option value="">选择年限</option>&ndash;%&gt;
                        {{#each .}}
                        <option value="{{Id}}">{{Name}}</option>
                        {{/each}}
                    </script>--%>
                    <span class="se-po se-po-inputTem"></span>
                </div>
            </td>
            <td>物管费</td>
            <td>
                <input id="pmfee" ng-class="{'error':err.payee}" ng-focus="remFocus()" type="text" disabled>
            </td>
        </tr>
        </tbody>
    </table>

    <table style="margin-bottom: 30px" class="public-content-tab">
        <thead>
        <tr>
            <td colspan="7">委估物业信息</td>
            <td><span id="calculate" class="_btn _btn-size">计算结果</span></td>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td><span>*</span>建筑面积</td>
            <td>
                <input id="square" ng-class="{'error':err.payee}" ng-focus="remFocus()" type="text">
            </td>
            <td><span>*</span>所在楼层</td>
            <td>
                <input id="floor" ng-class="{'error':err.payee}" ng-focus="remFocus()" type="text">
            </td>
            <td><span>*</span>总楼层</td>
            <td>
                <input id="totalFloor" ng-class="{'error':err.payee}" ng-focus="remFocus()" type="text">
            </td>
            <td>物业类型</td>
            <td>
                <div class="se-re">
                    <select id="property">
                        <%--<option value="">请选择住宅类型</option>--%>
                        <option value="普通住宅">普通住宅</option>
                        <option value="自建住宅">自建住宅</option>
                        <option value="单身宿舍">单身宿舍</option>
                        <option value="花园洋房">花园洋房</option>
                    </select>
                </div>
            </td>
        </tr>
        <tr>
            <td>户型</td>
            <td>
                <div class="se-re">
                    <select style="margin-left:10px;" id="houseType">
                        <%--<option value="">请选择户型</option>--%>
                        <option value="平面">平面</option>
                        <option value="跃式">跃式</option>
                        <option value="复式">复式</option>
                        <option value="平面带地下">平面带地下</option>
                        <option value="平面带花园">平面带花园</option>
                    </select>
                </div>
            </td>
            <td>
                朝向
            </td>
            <td>
                <div class="se-re">
                    <select id="forward">
                        <%--<option value="">请选择朝向</option>--%>
                        <option value="南">南</option>
                        <option value="东">东</option>
                        <option value="西">西</option>
                        <option value="北">北</option>
                        <option value="西北">西北</option>
                        <option value="西南">西南</option>
                        <option value="东北">东北</option>
                        <option value="东南">东南</option>
                        <option value="南北">南北</option>
                        <option value="东西">东西</option>
                    </select>
                </div>
            </td>
            <td>景观</td>
            <td>
                <div class="se-re">
                    <select id="view">
                        <%--<option value="">请选择景观</option>--%>
                        <option value="无景观">无景观</option>
                        <option value="小区绿地">小区绿地</option>
                        <option value="小区景观">小区景观</option>
                        <option value="公园">公园</option>
                        <option value="湖景">湖景</option>
                        <option value="江景">江景</option>
                        <option value="河景">河景</option>
                    </select>
                </div>
            </td>
            <td>是否临路</td>
            <td>
                <div class="se-re">
                    <select id="NearRoad">
                        <%--<option value="">请选择是否临路</option>--%>
                        <option value="不临路（测对）">不临路（测对）</option>
                        <option value="不临路（正对）">不临路（正对）</option>
                        <option value="主干道（正对）">主干道（正对）</option>
                        <option value="主干道（测对）">主干道（测对）</option>
                    </select>
                </div>
            </td>
            <%--<td style=" background-color: white" colspan="2">
                <span id="calculate" class="_btn _btn-size" ng-click="addBorrowingName()"
                      style="color: white;">计算结果</span>
            </td>--%>
        </tr>
        </tbody>
    </table>

    <table style="margin-bottom: 30px!important" class="table public-table PoInput">
        <thead>
        <tr style="background-color: #e55a5b; color:white">
            <td colspan="16">计算结果</td>
        </tr>
        </thead>
        <thead>
        <tr>
            <td>单价</td>
            <td>总价</td>
            <td>案例数量</td>
            <!-- <td>手机号码</td> -->
            <td>案例平均值</td>
            <td>案例最小值</td>
            <td>案例最大值</td>
        </tr>
        </thead>
        <tbody id="result_list">
        </tbody>
        <script type="text/x-handlebars-template" id="result_list_tpl">
            <tr class="">
                <td>￥{{#thounsandBit UnitPrice}}{{/thounsandBit}}</td>
                <td>￥{{#thounsandBit TotalPrice}}{{/thounsandBit}}</td>
                <td>{{AvgPrice}}</td>
                <td>{{AvgUnitPrice}}</td>
                <td>{{MaxPrice}}</td>
                <td>{{MinPrice}}</td>
            </tr>
        </script>

    </table>

    <table style="margin-bottom: 30px" class="public-content-tab">
        <thead>
        <tr>
            <td colspan="10">税费计算</td>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td>估价结果</td>
            <td>
                <input id="result" disabled ng-class="{'error':err.payee}" ng-focus="remFocus()" type="text">
            </td>
            <td>原购价</td>
            <td>
                <input id="buyPrice" ng-class="{'error':err.payee}" ng-focus="remFocus()" type="text" value="0">
            </td>
            <td>税费总额</td>
            <td>
                <input id="tax" ng-class="{'error':err.payee}" ng-focus="remFocus()" type="text">
            </td>
            <td>抵押净值</td>
            <td>
                <input id="mortgage" ng-class="{'error':err.payee}" ng-focus="remFocus()" type="text">
            </td>
        </tr>
        <tr>
            <td>物业类型</td>
            <td>
                <div class="se-re">
                    <select id="pro_type">
                        <%--<option value="">请选择物业类型</option>--%>
                        <option value="0">普通住宅</option>
                        <option value="1">非普通住宅</option>
                    </select>
                </div>
            </td>
            <td>产权类型</td>
            <td>
                <div class="se-re">
                    <select id="product_type">
                        <%--<option value="">请选择产权类型</option>--%>
                        <option value="0">个人</option>
                        <option value="1">企业</option>
                    </select>
                </div>
            </td>
            <td>是否满两年</td>
            <td>
                <div class="se-re">
                    <select id="is_two_year">
                        <option value="0">否</option>
                        <option value="1">是</option>
                    </select>
                </div>
            </td>
            <td>贷款类型</td>
            <td>
                <div class="se-re">
                    <select id="loan_type">
                        <%--<option value="">请选择产权类型</option>--%>
                        <option value="0">抵押贷款</option>
                        <option value="1">消费贷款</option>
                    </select>
                </div>
            </td>
        </tr>
        <tr>
            <td>是否到期</td>
            <td>
                <div class="se-re">
                    <select id="IsExpire">
                        <%--<option value="">请选择产权类型</option>--%>
                        <option value="0">未到期</option>
                        <option value="1">已到期</option>
                    </select>
                </div>
            </td>
            <td>是否唯一住宅</td>
            <td>
                <div class="se-re">
                    <select id="IsOnlyHouse">
                        <%--<option value="">请选择产权类型</option>--%>
                        <option value="0">否</option>
                        <option value="1">是</option>
                    </select>
                </div>
            </td>
            <td>是否乡镇</td>
            <td>
                <div class="se-re">
                    <select id="IsDownTown">
                        <%--<option value="">请选择产权类型</option>--%>
                        <option value="0">否</option>
                        <option value="1">是</option>
                    </select>
                </div>
            </td>
        </tr>
        </tbody>
    </table>

    <table class="public-content-tab">
        <tbody>
        <tr>
            <td colspan="8" style="background-color: white">
                <div>
                    <button style="width: 98px;
    height: 38px;
    margin-right: 10px;
    border-radius: 3px;
    background-color: #e55a5b;
    color: #fff;
    border: 1px solid #e55a5b;" id="taxCal" ng-click="sel('2')" type="button">税费计算
                    </button>
                    <button style="width: 98px;
    height: 38px;
    margin-right: 10px;
    border-radius: 3px;
    background-color: #e55a5b;
    color: #fff;
    border: 1px solid #e55a5b;" id="taxDetail" ng-click="sel('2')" type="button" data-toggle="modal"
                            data-target="#myModal">税费明细
                    </button>
                    <button style="width: 98px;
    height: 38px;
    margin-right: 10px;
    border-radius: 3px;
    background-color: #e55a5b;
    color: #fff;
    border: 1px solid #e55a5b;" id="print" ng-click="sel('2')" type="button" data-toggle="modal" data-target="#myModal">
                        打印结果
                    </button>
                </div>
            </td>
        </tr>
        </tbody>
    </table>

    <%--<table class="public-content-tab">
        <thead>
        <tr>
            <td colspan="10">案例分部</td>
        </tr>
        </thead>
    </table>
    <div id="echar1"></div>--%>

</div>
<script type="text/javascript" src="static/js/jquery-plugin/special_Intelligent_association.js?_v=190102162154"></script>








